package hello;

import java.lang.annotation.*;
import java.util.*;
import persistence.*;
import auction.model.*;

public class Message
{
	private Long id;
	private String text;
	private Message nextMessage;
	private Boolean flag;
	private Long nextid;
	private String wei;
	private Date modifyTime;
	private Address address;
	
	private Class clazz;
	private Locale locale;
	private TimeZone timezone;
	private Currency currency;
	
	Rating rating;
	
	public void setRating(Rating r){
		rating=r;
	}
	
	public Rating getRating(){
		return rating;
	}
	
	private MonetaryAmount money;
	
	public void setMoney(MonetaryAmount mt)
	{
		money=mt;
	}
	
	public MonetaryAmount getMoney()
	{
		return money;
	}
	
	public void setClazz(Class s)
	{
		clazz=s;
	}
	public Class getClazz()
	{
		return clazz;
	}
	
	public void setLocale(Locale s)
	{
		locale=s;
	}
	public Locale getLocale()
	{
		return locale;
	}
	
	public void setTimezone(TimeZone s)
	{
		timezone=s;
	}
	public TimeZone getTimezone()
	{
		return timezone;
	}
	
	public void setCurrency(Currency s)
	{
		currency=s;
	}
	public Currency getCurrency()
	{
		return currency;
	}
	
	public void setAddress(Address a)
	{
		address=a;
	}
	
	public Address getAddress()
	{
		return address;
	}
	
	
	Message()
	{
	}
	//@Target(value=ElementType.METHOD)
	public Message(String text)
	{
		this.text=text;
	}
	
	public Boolean getFlag()
	{
		return flag;
	}
	public void setFlag(Boolean f)
	{
		flag=f;
	}	
	
	public Long getId()
	{
		return id;
	}
	
	private void setId(Long id)
	{
		this.id=id;
	}
	
	public String getText()
	{
	    //return $cglib_read_text();
	    
		return text;
	}
	
	/** Private */
	public void setText(String text)
	{
	    //$cglib_write_text(text);
	    
		//System.out.println("### enter setText()");
		this.text=text;
		//System.out.println("### left setText()");
	}
	
	/*
	 
	 After instrument
	 
	 add a field net.sf.cglib.transform.impl.InterceptFieldCallback $CGLIB_READ_WRITE_CALLBACK;
	 
	  public InterceptFieldCallback getInterceptFieldCallback()
      {
        return this.$CGLIB_READ_WRITE_CALLBACK;
      }

      public void setInterceptFieldCallback(InterceptFieldCallback paramInterceptFieldCallback)
      {
        this.$CGLIB_READ_WRITE_CALLBACK = paramInterceptFieldCallback;
      }
	 
	 public void $cglib_write_text(String paramString)
     {
        this.text = (getInterceptFieldCallback() != null ? (String)getInterceptFieldCallback().writeObject(this, "text", this.text, paramString) : paramString);
     }

     public String $cglib_read_text()
     {
      if (getInterceptFieldCallback() == null)
        return this.text;
      else
        getInterceptFieldCallback().readObject(this,  "text" ,  this.text) 
      }
	*/
	
	public Message getNextMessage()
	{
		return nextMessage;
	}
	
	/** Private */
	public void setNextMessage(Message nextMessage)
	{
		this.nextMessage=nextMessage;
	}
	
	public String getWei()
	{
		return wei;
	}
	
	public void setWei(String wei)
	{
		this.wei=wei;
	}
	
	public Long getNextid()
	{
		return nextid;
	}
	
	private void setNextid(Long id)
	{
		this.nextid=id;
	}
	
	public Date getModifyTime()
	{
		return modifyTime;
	}
	
	private void setModifyTime(Date date)
	{
		this.modifyTime=date;
	}
	
}		
		
		